unit base;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls;

type
  Tbasefrm = class(TForm)
    pal_ctrl: TPanel;
    btnClose: TSpeedButton;
    labcaption: TLabel;
    procedure pal_ctrlResize(Sender: TObject);
    procedure btnCloseClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  basefrm: Tbasefrm;

implementation

{$R *.dfm}

procedure Tbasefrm.pal_ctrlResize(Sender: TObject);
begin
  btnClose.Left:=pal_ctrl.Width-btnClose.Width-3;
end;

procedure Tbasefrm.btnCloseClick(Sender: TObject);
begin
  Hide;
end;

end.
